{% extends 'channel/base.html' %}
<!DOCTYPE html>
<html lang="en">
<head>

    <meta charset="UTF-8">
    <title>包归档</title>

</head>
<body>
{% block content %}
    <div class="container">
        <div>
            <p align="center" style="font-size: 20px">历史版本母包及渠道包归档管理</p>
        </div>
        <div class="row clearfix">
            <div class="col-md-6 column">
                <h3 align="center">
                    母包管理
                </h3>
                <p align="center">
                    历史版本母包
                </p>
                <br>
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th>编号</th>
                        <th>版本</th>
                        <th>360加固包</th>
                        <th>百度加固包</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>0</td>
                        <td>3050</td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                    </tr>
                    <tr class="success">
                        <td>1</td>
                        <td>3051</td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>

                    </tr>
                    <tr class="error">
                        <td>2</td>
                        <td>3052</td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                    </tr>
                    <tr class="warning">
                        <td>3</td>
                        <td>3053</td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                    </tr>
                    <tr class="info">
                        <td>4</td>
                        <td>3054</td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
{#                <form>#}
{#                    {% csrf_token %}#}
{#                    <input type="button" onclick="submitInfo(this.value)" value="3060">#}
{#                </form>#}
            </div>
            <div class="col-md-6 column">
                <h3 align="center">
                    渠道包管理
                </h3>
                <p align="center">
                    历史版本渠道包
                </p>
                <br>
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th>编号</th>
                        <th>版本</th>
                        <th>360渠道包</th>
                        <th>百度渠道包</th>
                    </tr>
                    </thead>

                    <tbody>
                    <tr>
                        <td style="align-content: center;vertical-align: middle">0</td>
                        <td style="align-content: center;vertical-align: middle">{{ apkVersion }}</td>
                        <td>
                            <a href="http://127.0.0.1:8000/static/channelApkFolder/{{ apkVersion }}/{{ eachApk }}">点击下载 编辑 删除</a>
                            {#                            <ul>#}
                            {#                                {% for eachApk in apkList %}#}
                            {#                                    <li>#}
                            {#                                        <a href="http://127.0.0.1:8000/static/channelApkFolder/{{ apkVersion }}/{{ eachApk }}">点击下载</a>#}
                            {#                                    </li>#}
                            {#                                {% endfor %}#}
                            {#                            </ul>#}
                        </td>
                        <td>
                            <a href="http://127.0.0.1:8000/static/channelApkFolder/{{ apkVersion }}/{{ eachApk }}">点击下载 编辑 删除</a>
{#                            <ul>#}
{#                                #}
{#                                {% for eachApk in apkList %}#}
{#                                    <li>#}
{#                                        <a href="http://127.0.0.1:8000/static/channelApkFolder/{{ apkVersion }}/{{ eachApk }}">点击下载</a>#}
{#                                    </li>#}
{#                                {% endfor %}#}
{#                            </ul>#}
                        </td>
                    </tr>
                    <tr class="success">
                        <td>1</td>
                        <td>3051</td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                    </tr>
                    <tr class="error">
                        <td>3</td>
                        <td>3053</td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                    </tr>
                    <tr class="warning">
                        <td>3</td>
                        <td>3053</td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                    </tr>
                    <tr class="info">
                        <td>4</td>
                        <td>3054</td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                        <td><a href="http://127.0.0.1:8000/static/baseApkFolder/{{ apkVersion }}/{{ apkName }}">点击下载 编辑 删除</a>
                        </td>
                    </tr>
                    </tbody>

                </table>

            </div>
        </div>
    </div>

    <script type="application/javascript">

        function submitInfo(versionInfo) {
            //Ajax CSRF认证使用，若不添加认证，django后端不识别
            $.ajaxSetup({
                data: {csrfmiddlewaretoken: '{{ csrf_token }}'}
            });
            var str = 'numm'
            $.ajax({
                url: "{% url 'channel:retChannelCodel' %}",
                type: 'POST',
                dataType: 'json',
                data: {'a': versionInfo, 'b': str},
                success: function (data) {
                    $('td.version').html(data.message);
                }
            })
        }
    </script>
    <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
{% endblock content %}
</body>
</html>